package com.wulinbus.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wulinbus.dao.user.RechargeOrderDao;
import com.wulinbus.model.RechargeOrderModel;
import com.wulinbus.service.RechargeOrderService;
@Service
public class RechargeOrderServiceImpl implements RechargeOrderService{
	@Resource
	private RechargeOrderDao rechargeOrderDao;
	public void insert(RechargeOrderModel order){
		rechargeOrderDao.insert(order);
	}
	@Override
	public RechargeOrderModel getByNum(String order_num) {
		// TODO Auto-generated method stub
		return rechargeOrderDao.getByNum(order_num);
	}
	@Override
	public void updateByOrderNum(RechargeOrderModel order) {
		// TODO Auto-generated method stub
		rechargeOrderDao.updateByOrderNum(order);
	}
	@Override
	public List<RechargeOrderModel> getRechargeOrderList(String keyword,
			Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return rechargeOrderDao.getRechargeOrderList(keyword,start,pageSize);
	}
	@Override
	public Integer allCount(String keyword) {
		// TODO Auto-generated method stub
		return rechargeOrderDao.allCount(keyword);
	}

}
